package com.comp490.navigation;

import com.comp490.shooter.R;

import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

public class MainMenuTitleScreenFrag extends Fragment
{
    TextView marquee;

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup viewgroup,
            Bundle state)
    {
        return inflater
                .inflate(R.layout.mainmenu_titlescreen, viewgroup, false);
    }

    @Override
    public void onActivityCreated(Bundle state)
    {
        super.onActivityCreated(state);
        Typeface photonica = Typeface.createFromAsset(this.getActivity()
                .getAssets(), "photonica_regular.ttf");
        Typeface arkitech = Typeface.createFromAsset(this.getActivity()
                .getAssets(), "arkitech_light.ttf");

        marquee = (TextView) getActivity().findViewById(R.id.story_marquee);
        marquee.setTypeface(photonica);
        marquee.setSelected(true); // set Marquee scrolling again

        Button startButton = (Button) getActivity().findViewById(
                R.id.button_mainmenu_title_startgame);
        startButton.setTypeface(arkitech);
    }

    @Override
    public void onPause()
    {
        super.onPause();
    }

}
